const openCourses = {
  path: '/cstore',
  name: 'courseStore',
  meta: {
    name: '课程库',
    roles: [32, 64, 2, 128, 1],
    keepAlive: false
  },
  component: resolve => require(['@/views/coursesStore/index'], resolve),
  // redirect: {
  //   name: 'cStore',
  //   roles: [32, 2, 128]
  // },
  children: [
    // {
    //   path: 'store',
    //   name: 'cStore',
    //   meta: {
    //     name: '可开课程库',
    //     keepAlive: false
    //   },
    //   components: {
    //     default: resolve => require(['@/views/coursesStore/list/courseStore'], resolve),
    //     coursesNav: resolve => require(['@/components/coursesPage/coursesNav'], resolve),
    //   }
    // },
    // {
    //   path: 'opened',
    //   name: 'Opened',
    //   meta: {
    //     name: '已开课程',
    //     keepAlive: false
    //   },
    //   components: {
    //     default: resolve => require(['@/views/coursesStore/list/openedCourses'], resolve),
    //     coursesNav: resolve => require(['@/components/coursesPage/coursesNav'], resolve),
    //   }
    // },
    // {
    //   path: 'cancelled',
    //   name: 'Cancelled',
    //   meta: {
    //     name: '已取消',
    //     keepAlive: false
    //   },
    //   components: {
    //     default: resolve => require(['@/views/coursesStore/list/deleteCourses'], resolve),
    //     coursesNav: resolve => require(['@/components/coursesPage/coursesNav'], resolve),
    //   }
    // },
    {
      path: 'detail',
      name: 'store_browseDetail',
      meta: {
        name: '浏览课程',
      },
      component: resolve => require(['@/views/courses/browseDetail/browseDetail'], resolve),
    },
  ]
}

export default openCourses